use "C:Code\Mex_FinalData2.dta", clear

*Change to have the same direcion than "summpositive" questions
recode op_imss 7=1 6=2 5=3 3=5 2=6 1=7
recode op_isr 7=1 6=2 5=3 3=5 2=6 1=7

***Table 2: Effects of Concerns over Violence On Business Support for Social Policies
oprobit op_poverty treat_vio  if treat_corr==0
outreg2 using "C:Code\Tables\Table2.xls", replace word ctitle(Pov) bdec(4) sdec(4) paren(se) asterisk(coef)
oprobit op_education treat_vio  if treat_corr==0
outreg2 using "C:Code\Tables\Table2.xls", append word ctitle(Edu) bdec(4) sdec(4) paren(se) asterisk(coef)
oprobit op_imss treat_vio  if treat_corr==0
outreg2 using "C:Code\Tables\Table2.xls", append word ctitle(SocialSec) bdec(4) sdec(4) paren(se) asterisk(coef)
oprobit op_isr treat_vio if treat_corr==0
outreg2 using "C:Code\Tables\Table2.xls", append word ctitle(Tax) bdec(4) sdec(4) paren(se) asterisk(coef)

***Figure 2: Marginal effects plots
oprobit op_poverty treat_vio if treat_corr==0
margins, dydx(treat_vio) mcomp(bon)
marginsplot, mcomp(bon) recast(scatter) yline(0)

oprobit op_isr treat_vio if treat_corr==0
margins, dydx(treat_vio) mcomp(bon)
marginsplot, mcomp(bon) recast(scatter) yline(0)

